package Day06;

import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入您的成绩：");
        double score = in.nextDouble();
        if (score >= 90 && score <= 100) {
            System.out.println ("优秀");
        } else if (score >= 80 && score <= 89) {
            System.out.println ("好");
        } else if (score >= 70 && score <= 79) {
            System.out.println("良");
        } else if (score >= 60 && score <= 69) {
            System.out.println("及格");
        } else if (score >= 0 && score <= 60) {
            System.out.printf("不及格");
        } else {
            System.out.printf("数据不合理！");
        }
    }
}
